php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#203203 - 05/26/04 07:16 PM [6.7] [beta] Polls... The Way They Were Meant To Be
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Modification Name: Polls... The Way They Were Meant To Be

Author(s): Ian Spence

Description: Makes polls appear in your topic, not in a popup.

Also allows for polls to be called via js, allowing for Poll Content Islands laugh

Demo: http://www.alforadmin.com

Requirements: UBB.classic 6.7

Download Link: http://www.ubbdev.com/ubb/upload/00020028/Poll-TWTWMTBI.zip

Credits: LK for the poll beautification mod, and CC for a lot of help with code

The script can be called the following way.

Code:
<script language="Javascript1.1" type="text/javascript" src="http://yourdomain.com/cgi-bin/poll_ssi.cgi?poll=[pollid]"></script>
Replace [pollid] with the pollid, which can be found by viewing the source code of the topic containing the poll

Top
#203204 - 05/26/04 07:42 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Looks slick, thanks laugh

I'm liking the latest look of your site, congrats on the refinement thumbsup
_________________________
- Allen wavey
- What Drives You?

Top
#203205 - 05/26/04 07:51 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
laugh Thanks. And thank you for not complaining when I stole your blockquote css.

A note to people who want to preview this, log on with UBBDEV / UBBDEV or you'll only be told you can vote tipsy

Top
#203206 - 05/26/04 07:52 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
havoq Offline
Member

Registered: 09/11/01
Posts: 667
Loc: MI
Nice hack, polls look much better that way laugh

I'll agree with Allen here and say your site kicks some ass wink
_________________________
-Jon
I have a measly [img]http://www.ubbdev.com/ud/?u=chugger93&s=1[/img] points, it's weak, I know wink
Where I continue to hack, even though it's a state of mind

Top
#203207 - 05/27/04 12:34 AM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
RandyM Offline
Spotlight Winner

Registered: 06/28/01
Posts: 2642
Loc: Southern California | Guitar o...
Very, very nice. I'm happy to see new ideas and old faces.
_________________________
3 time Spotlight winner.
Believe The Lie

Top
#203208 - 05/27/04 07:56 AM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 686
Hello,

I get this error:

Ein Fehler ist aufgetreten:

Can't find string terminator "THAT_PAGE" anywhere before EOF at NonCGIPath/Templates/public_polls.pl line 1045.

Can someone send me the hacked files?
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#203209 - 05/27/04 11:34 AM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
The very last step, instead of

Code:
------
Find:
------

$Footer_Popup
THAT_PAGE


------
Replace With:
------

}
do

Code:
------
Find:
------

$Footer_Popup
THAT_PAGE


------
Add After:
------

}

Top
#203210 - 05/27/04 12:38 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 686
Hi Ian,

I have changed it, but now I can not see anything...

http://www.d-talk.tv/ubb/ultimatebb.php/ubb/get_topic/f/4/t/000027.html
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#203211 - 05/27/04 01:07 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
I'll need ftp access to your board to see what's wrong

Top
#203212 - 05/27/04 01:38 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Fixed.

A note to everyone, CHMOD the poll_ssi.cgi to 755, not 777

Top
#203213 - 05/27/04 01:48 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 686
Thanks Ian!

One question:

Is it normal that after voting there is the old pollwindow and after closing it, the whole boardpage is closing?
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#203214 - 05/27/04 02:00 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
leave it to ian to error a chmod on a mod which took so long to write wink ...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#203215 - 05/27/04 02:19 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
I finally figured out how to do the Transition with the Thank you page.

Please redo the second step of public_polls.pl.

Then do the new steps,

Code:
------
Find:
------

sub PollThankForVote {
	my $pollid = shift;


------
Add After:
------

	if($in{refer}) {
		my $pickle;
		my $title;

		$in{refer} = $ENV{HTTP_REFERER} if $ENV{HTTP_REFERER} ne "";

		if($in{refer} ne '') {
			$pickle = $in{refer};
		} else {
			$pickle = $ULTIMATEBB{FORM};
		}

		if($in{title} ne '') {
			$title = $in{title};
		} else {
			$title = $vars_config{BBName};
		}

		&Transition($pickle, "Thank you for voting.", $title);

	} else {

------
Find:
------

		$string .= qq(</center>);
	} # end if
	&StandardHTMLPopup($string);

------
Add After:
------

}
Zip updated.

Top
#203216 - 05/27/04 02:31 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 686
Sorry,

Now I get this error:

(RequireCodeNoINC) NonCGIPath/Templates/public_polls.pl: Unmatched right curly bracket at NonCGIPath/Templates/public_polls.pl line 826, at end of line
syntax error at NonCGIPath/Templates/public_polls.pl line 826, near "}"
Compilation failed in require at CGIPath/ubb_lib.cgi line 941.
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#203217 - 05/27/04 02:36 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
I said to redo the second step, not remove it entirely

Top
#203218 - 05/27/04 03:12 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 686
ooops, sorry laugh
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#203219 - 05/27/04 03:19 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 686
Ian, what do I have to change, that it looks like at your board?
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#203220 - 05/28/04 12:22 AM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
mmg Offline
Junior Member

Registered: 07/17/03
Posts: 6
Thanks for the nice mod. When looking at the poll on my site,it is inside the 1st post in the thread. I noticed the poll on your site is above the 1st post. Do have have a modified version or did I mess up the install?

Top
#203221 - 05/28/04 11:33 AM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
I have a modified version which was actually a PITA to get to work correctly. The version in this mod appears inside the first post

Top
#203222 - 05/31/04 04:53 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Good job, very good job! laugh (although I liked it better when the colors were by the percentage and not by the order)
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
Page 1 of 2 1 2 >



Moderator:  Charles, Gizmo 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks